<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class File extends Model
{

    protected $table = 'files';


    /**
     * 获取文件
     * @param $id
     * @return bool
     */
    public static function getFile($id) {
        $list = File::find($id);
        if(empty($list)) return false;
        return $list;
    }

}
